package oop3;

//古筝
public class ChinaViolin {
	private String price;
	private String owner;// 主人
	public static int lines = 5;

	static {
		System.out.println("皇帝创造了音乐。。。");
	}

	public ChinaViolin(String price, String owner) {
		super();
		this.price = price;
		this.owner = owner;
	}

	public static void printLines() {
		System.out.println("这是一个" + lines + "弦琴");
	}

	public void play(String audience) {
		System.out.println(owner + "在用价值" + price + "的" + lines + "弦琴在弹奏");
		System.out.println(owner + "弹奏给" + audience + "听，巍巍若高山");
	}

	public static void main(String[] args) {
		ChinaViolin.printLines();
		// owner = "老刘";
		lines = 8;
		ChinaViolin.printLines();
		ChinaViolin v = new ChinaViolin("2000元人名币", "老刘");
		v.play("校长");
	}
}
